package org.chuanyang.mm;

import org.chuanyang.mm.db.MetaData.DB;

public class BillFactory {

	public Bill createBill(String billName) {
		Bill bill = null;
		
		if (billName.equals(DB.TABLE[DB.INCOMING])) {
			bill = new BillIncoming();
		} else if (billName.equals(DB.TABLE[DB.OUTLAY])) {
			bill = new BillOutlay();
		}
		return bill;
	}

}
